package com.zker.missyou.validators;/*
 * ClassName: PasswordEquals
 * Package : com.zker.missyou.validators
 * Description:
 * @Author zKer
 * @Create 2024/6/28 15:01
 */

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.*;

@Documented
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.TYPE})
@Constraint(validatedBy = PasswordValidator.class)
public @interface PasswordEquals {
    int min() default 6;
    int max() default 20;
    String message() default "密码不一致";
    Class<?>[] groups() default {};
    Class<? extends Payload>[] payload() default {};
}
